/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Temporal;

/**
 *
 * @author itachiu
 */
@Entity
public class Appointment implements Serializable {
    @Id
    @GeneratedValue(strategy= GenerationType.AUTO)
    private Long id;
    @Temporal(javax.persistence.TemporalType.DATE)
    Date date_app;
    int charge;
    String notes;
    @ManyToOne
    Veterinarian vet; /**one appoint is make for one veterinarian**/
    @ManyToOne
    Medical_record medRecord;

    public Date getDate() {
        return date_app;
    }

    public void setDate(Date date_app) {
        this.date_app = date_app;
    }

    public int getCharge() {
        return charge;
    }

    public void setCharge(int charge) {
        this.charge = charge;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public Veterinarian getVet() {
        return vet;
    }

    public void setVet(Veterinarian vet) {
        this.vet = vet;
    }

    public Medical_record getMedRecord() {
        return medRecord;
    }

    public void setMedRecord(Medical_record medRecord) {
        this.medRecord = medRecord;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
 /**has one medical record**/
    
    
}
